//
//  Dog.m
//  Homework_01
//
//  Created by dllo on 16/2/24.
//  Copyright © 2016年 Apon. All rights reserved.
//

#import "Dog.h"

@implementation Dog

- (instancetype)initWithName:(NSString *)name age:(int)age sex:(NSString *)sex color:(NSString *)color breed:(NSString *)breed{
    self = [super init];
    if (self) {
        _name = name;
        _age = age;
        _sex = sex;
        _color = color;
        _breed = breed;
    }
    return self;
}

- (void)setName:(NSString *)name{
    _name = name;
}

- (NSString *)name{
    return _name;
}

- (void)setAge:(int)age{
    _age = age;
}

- (int)age{
    return _age;
}

- (void)setSex:(NSString *)sex{
    _sex = sex;
}

- (NSString *)sex{
    return _sex;
}

- (void)setColor:(NSString *)color{
    _color = color;
}

- (NSString *)color{
    return _color;
}

- (void)setBreed:(NSString *)breed{
    _breed = breed;
}

- (NSString *)breed{
    return _breed;
}

- (void)info{
    NSLog(@"name = %@, age = %d, sex = %@, color = %@, breed = %@", _name, _age, _sex, _color, _breed);
}



@end
